Struct srt_protocol::options::Valid
source[−]pub struct Valid<T: Validation>(_);
Implementations
pub fn with<F>(self, options: F) -> Result<Self, <T as Validation>::Error> where
T: OptionsOf<F>,
F: Validation<Error = <T as Validation>::Error>,
pub fn with2<F1, F2>(
self,
options1: F1,
options2: F2
) -> Result<Self, <T as Validation>::Error> where
T: OptionsOf<F1> + OptionsOf<F2>,
F1: Validation<Error = <T as Validation>::Error>,
F2: Validation<Error = <T as Validation>::Error>,
pub fn with3<F1, F2, F3>(
self,
options1: F1,
options2: F2,
options3: F3
) -> Result<Self, <T as Validation>::Error> where
T: OptionsOf<F1> + OptionsOf<F2> + OptionsOf<F3>,
F1: Validation<Error = <T as Validation>::Error>,
F2: Validation<Error = <T as Validation>::Error>,
F3: Validation<Error = <T as Validation>::Error>,
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<T> RefUnwindSafe for Valid<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Valid<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.