pub struct Advertisement<'a> { /* private fields */ }Expand description
Incremental advertisement for hosts whose stable ref projection lives in
external storage. previous retains only the last name, never the ref set.
Implementations§
Source§impl<'a> Advertisement<'a>
impl<'a> Advertisement<'a>
pub fn new( format: ObjectFormat, capabilities: Capabilities, previous: &'a mut [u8], ) -> Self
pub fn start(&mut self, output: &mut impl Write) -> Result<()>
pub fn reference( &mut self, id: ObjectId, name: &[u8], output: &mut impl Write, ) -> Result<()>
pub fn finish(&mut self, output: &mut impl Write) -> Result<()>
Auto Trait Implementations§
impl<'a> !UnwindSafe for Advertisement<'a>
impl<'a> Freeze for Advertisement<'a>
impl<'a> RefUnwindSafe for Advertisement<'a>
impl<'a> Send for Advertisement<'a>
impl<'a> Sync for Advertisement<'a>
impl<'a> Unpin for Advertisement<'a>
impl<'a> UnsafeUnpin for Advertisement<'a>
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