pub struct HookOutput {
pub message: Option<Message>,
pub generated_messages: Vec<(Direction, Message)>,
}Fields§
§message: Option<Message>§generated_messages: Vec<(Direction, Message)>Implementations§
Source§impl HookOutput
impl HookOutput
pub fn new(message: Message) -> Self
pub fn empty() -> Self
pub fn with_message(self, direction: Direction, message: Message) -> Self
pub fn with_messages(self, messages: Vec<(Direction, Message)>) -> Self
pub fn as_processed(self) -> ProcessedMessage
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HookOutput
impl RefUnwindSafe for HookOutput
impl Send for HookOutput
impl Sync for HookOutput
impl Unpin for HookOutput
impl UnwindSafe for HookOutput
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