#[non_exhaustive]pub struct MuxHint {
pub forward_only: bool,
}Expand description
What the caller tells a muxer about its destination.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.forward_only: boolThe destination cannot seek back: a muxer that would patch must
choose a forward-only layout or refuse at begin.
Implementations§
Source§impl MuxHint
impl MuxHint
Sourcepub const fn forward_only() -> Self
pub const fn forward_only() -> Self
A destination that cannot seek back (a socket, a pipe).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MuxHint
impl RefUnwindSafe for MuxHint
impl Send for MuxHint
impl Sync for MuxHint
impl Unpin for MuxHint
impl UnsafeUnpin for MuxHint
impl UnwindSafe for MuxHint
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