pub struct FanoutRegion<const N: usize> { /* private fields */ }Expand description
File-backed shared fanout region.
See EventsRegion for the creator/joiner initialization model.
Implementations§
Source§impl<const N: usize> FanoutRegion<N>
impl<const N: usize> FanoutRegion<N>
Sourcepub fn open(name: &str) -> Result<Self, Error>
pub fn open(name: &str) -> Result<Self, Error>
Open (or create) a fanout region using the default path for name.
Sourcepub fn open_with(name: &str, options: OpenOptions) -> Result<Self, Error>
pub fn open_with(name: &str, options: OpenOptions) -> Result<Self, Error>
Open (or create) a fanout region using explicit options.
Sourcepub fn open_path(path: impl AsRef<Path>) -> Result<Self, Error>
pub fn open_path(path: impl AsRef<Path>) -> Result<Self, Error>
Open (or create) a fanout region backed by path.
Sourcepub fn open_path_with(
path: impl AsRef<Path>,
options: OpenOptions,
) -> Result<Self, Error>
pub fn open_path_with( path: impl AsRef<Path>, options: OpenOptions, ) -> Result<Self, Error>
Open (or create) a fanout region backed by path with explicit options.
See EventsRegion::open_path_with for error semantics.
Trait Implementations§
impl<const N: usize> Send for FanoutRegion<N>
impl<const N: usize> Sync for FanoutRegion<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for FanoutRegion<N>
impl<const N: usize> !RefUnwindSafe for FanoutRegion<N>
impl<const N: usize> Unpin for FanoutRegion<N>
impl<const N: usize> !UnwindSafe for FanoutRegion<N>
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