Struct icu_provider::export::MultiExporter
source · pub struct MultiExporter(/* private fields */);
Expand description
A DataExporter
that forks to multiple DataExporter
s.
Implementations§
source§impl MultiExporter
impl MultiExporter
sourcepub const fn new(exporters: Vec<Box<dyn DataExporter>>) -> Self
pub const fn new(exporters: Vec<Box<dyn DataExporter>>) -> Self
Creates a MultiExporter
for the given exporters.
Trait Implementations§
source§impl DataExporter for MultiExporter
impl DataExporter for MultiExporter
source§fn put_payload(
&self,
marker: DataMarkerInfo,
id: DataIdentifierBorrowed<'_>,
payload: &DataPayload<ExportMarker>,
) -> Result<(), DataError>
fn put_payload( &self, marker: DataMarkerInfo, id: DataIdentifierBorrowed<'_>, payload: &DataPayload<ExportMarker>, ) -> Result<(), DataError>
Save a
payload
corresponding to the given marker and locale. Read moresource§fn flush_singleton(
&self,
marker: DataMarkerInfo,
payload: &DataPayload<ExportMarker>,
metadata: FlushMetadata,
) -> Result<(), DataError>
fn flush_singleton( &self, marker: DataMarkerInfo, payload: &DataPayload<ExportMarker>, metadata: FlushMetadata, ) -> Result<(), DataError>
Function called for singleton markers. Read more
source§fn flush(
&self,
marker: DataMarkerInfo,
metadata: FlushMetadata,
) -> Result<(), DataError>
fn flush( &self, marker: DataMarkerInfo, metadata: FlushMetadata, ) -> Result<(), DataError>
Function called after a non-singleton marker has been fully enumerated. Read more
source§impl Debug for MultiExporter
impl Debug for MultiExporter
source§impl Default for MultiExporter
impl Default for MultiExporter
source§fn default() -> MultiExporter
fn default() -> MultiExporter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MultiExporter
impl !RefUnwindSafe for MultiExporter
impl !Send for MultiExporter
impl Sync for MultiExporter
impl Unpin for MultiExporter
impl !UnwindSafe for MultiExporter
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more