pub struct BridgeResponse<T = ()> { /* private fields */ }Expand description
A response from the bridge.
Implementations§
Source§impl<T> BridgeResponse<T>
impl<T> BridgeResponse<T>
Sourcepub fn into_result(self) -> Option<T>
pub fn into_result(self) -> Option<T>
Converts the response into a result.
Sourcepub fn with_value1(self, value1: u64) -> Self
pub fn with_value1(self, value1: u64) -> Self
Sets the first value of the response.
Sourcepub fn with_value2(self, value2: u64) -> Self
pub fn with_value2(self, value2: u64) -> Self
Sets the second value of the response.
Sourcepub fn with_value3(self, value3: u64) -> Self
pub fn with_value3(self, value3: u64) -> Self
Sets the third value of the response.
Sourcepub fn with_value4(self, value4: u64) -> Self
pub fn with_value4(self, value4: u64) -> Self
Sets the fourth value of the response.
Sourcepub fn with_result(self, result: T) -> Self
pub fn with_result(self, result: T) -> Self
Sets the result of the response.
Trait Implementations§
Source§impl<T: Debug> Debug for BridgeResponse<T>
impl<T: Debug> Debug for BridgeResponse<T>
Auto Trait Implementations§
impl<T> Freeze for BridgeResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for BridgeResponse<T>where
T: RefUnwindSafe,
impl<T> Send for BridgeResponse<T>where
T: Send,
impl<T> Sync for BridgeResponse<T>where
T: Sync,
impl<T> Unpin for BridgeResponse<T>where
T: Unpin,
impl<T> UnwindSafe for BridgeResponse<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more