pub struct Declared { /* private fields */ }Expand description
Fields of a mirror asked for: written at the rate asked while this lives, read in place; dropped, what only it asked for stops.
Implementations§
Source§impl Declared
impl Declared
Sourcepub fn new(
spec: &MirrorSpec,
wanted: u64,
rate: Rate,
) -> Result<Declared, Diagnostic>
pub fn new( spec: &MirrorSpec, wanted: u64, rate: Rate, ) -> Result<Declared, Diagnostic>
Asks for wanted fields of spec (a bit each, in field order) at rate.
Sourcepub fn scoped(
spec: &MirrorSpec,
wanted: u64,
rate: Rate,
scope: Option<Vec<u8>>,
) -> Result<Declared, Diagnostic>
pub fn scoped( spec: &MirrorSpec, wanted: u64, rate: Rate, scope: Option<Vec<u8>>, ) -> Result<Declared, Diagnostic>
Declared::new covering scope only (the mirror’s scope type as
Yog Data: a BlockScope…).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Declared
impl RefUnwindSafe for Declared
impl Send for Declared
impl Sync for Declared
impl Unpin for Declared
impl UnsafeUnpin for Declared
impl UnwindSafe for Declared
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