Barotrauma Client Doc
Barotrauma.Success< T, TError > Class Template Reference
Inheritance diagram for Barotrauma.Success< 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 ()
 
 Success (T value)
 

Public Attributes

readonly T Value
 

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 29 of file Result.cs.

Constructor & Destructor Documentation

◆ Success()

Barotrauma.Success< T, TError >.Success ( value)

Definition at line 51 of file Result.cs.

Member Function Documentation

◆ ToString()

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

◆ TryUnwrapFailure()

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

Implements Barotrauma.Result< T, TError >.

Definition at line 42 of file Result.cs.

◆ TryUnwrapSuccess()

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

Implements Barotrauma.Result< T, TError >.

Definition at line 36 of file Result.cs.

Member Data Documentation

◆ Value

readonly T Barotrauma.Success< T, TError >.Value

Definition at line 33 of file Result.cs.

Property Documentation

◆ IsSuccess

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

Definition at line 34 of file Result.cs.