Barotrauma Client Doc
Barotrauma.Failure< T, TError > Class Template Reference
Inheritance diagram for Barotrauma.Failure< T, TError >:
Barotrauma.Result< T, TError >

Public Member Functions

override bool TryUnwrapSuccess ([MaybeNullWhen(returnValue:false)] out T value)
 
override bool TryUnwrapFailure ([MaybeNullWhen(returnValue:false)] out TError value)
 
override string ToString ()
 
 Failure (TError error)
 

Public Attributes

readonly TError Error
 

Properties

override bool IsSuccess [get]
 
- Properties inherited from Barotrauma.Result< T, TError >
abstract bool IsSuccess [get]
 
bool IsFailure [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from Barotrauma.Result< T, TError >
static Result< T, TError > Success (T value)
 
static Result< T, TError > Failure (TError error)
 
- Static Public Attributes inherited from Barotrauma.Result< T, TError >
static Func< T, Result< T, TError > > Success
 

Detailed Description

Type Constraints
T :notnull 
TError :notnull 

Definition at line 57 of file Result.cs.

Constructor & Destructor Documentation

◆ Failure()

Barotrauma.Failure< T, TError >.Failure ( TError  error)

Definition at line 80 of file Result.cs.

Member Function Documentation

◆ ToString()

override string Barotrauma.Failure< T, TError >.ToString ( )
virtual

◆ TryUnwrapFailure()

override bool Barotrauma.Failure< T, TError >.TryUnwrapFailure ( [MaybeNullWhen(returnValue: false)] out TError  value)
virtual

Implements Barotrauma.Result< T, TError >.

Definition at line 71 of file Result.cs.

◆ TryUnwrapSuccess()

override bool Barotrauma.Failure< T, TError >.TryUnwrapSuccess ( [MaybeNullWhen(returnValue: false)] out T  value)
virtual

Implements Barotrauma.Result< T, TError >.

Definition at line 65 of file Result.cs.

Member Data Documentation

◆ Error

readonly TError Barotrauma.Failure< T, TError >.Error

Definition at line 61 of file Result.cs.

Property Documentation

◆ IsSuccess

override bool Barotrauma.Failure< T, TError >.IsSuccess
get

Definition at line 63 of file Result.cs.