pub struct CommandValidator;
Expand description
Validation helper for commands
Implementations§
Source§impl CommandValidator
impl CommandValidator
Sourcepub fn validate_create_session(
command: &CreateSessionCommand,
) -> Result<(), Vec<String>>
pub fn validate_create_session( command: &CreateSessionCommand, ) -> Result<(), Vec<String>>
Validate CreateSessionCommand
Sourcepub fn validate_create_stream(
command: &CreateStreamCommand,
) -> Result<(), Vec<String>>
pub fn validate_create_stream( command: &CreateStreamCommand, ) -> Result<(), Vec<String>>
Validate CreateStreamCommand
Sourcepub fn validate_generate_frames(
command: &GenerateFramesCommand,
) -> Result<(), Vec<String>>
pub fn validate_generate_frames( command: &GenerateFramesCommand, ) -> Result<(), Vec<String>>
Validate GenerateFramesCommand
Auto Trait Implementations§
impl Freeze for CommandValidator
impl RefUnwindSafe for CommandValidator
impl Send for CommandValidator
impl Sync for CommandValidator
impl Unpin for CommandValidator
impl UnwindSafe for CommandValidator
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