Struct Discoverer Container Info Builder
Source pub struct DiscovererContainerInfoBuilder(/* private fields */);Expand description
Opaque structure for building DiscovererContainerInfo objects programmatically.
Implementations§
Source§impl DiscovererContainerInfoBuilder
impl DiscovererContainerInfoBuilder
Sourcepub fn new(caps: &Caps) -> Self
pub fn new(caps: &Caps) -> Self
Creates a new DiscovererContainerInfoBuilder for building a
DiscovererContainerInfo with multiple streams.
§caps
the container caps
§Returns
a new DiscovererContainerInfoBuilder,
or None if caps is None
Sourcepub fn add_stream(self, stream_info: impl IsA<DiscovererStreamInfo>) -> Self
pub fn add_stream(self, stream_info: impl IsA<DiscovererStreamInfo>) -> Self
pub fn tags(self, tags: &TagList) -> Self
Sourcepub fn build(self) -> DiscovererContainerInfo
pub fn build(self) -> DiscovererContainerInfo
Builds and returns a new DiscovererContainerInfo. This frees the builder.
§Returns
a new DiscovererContainerInfo
Trait Implementations§
Source§impl Drop for DiscovererContainerInfoBuilder
Available on crate feature v1_30 only.
impl Drop for DiscovererContainerInfoBuilder
Available on crate feature
v1_30 only.Auto Trait Implementations§
impl !Send for DiscovererContainerInfoBuilder
impl !Sync for DiscovererContainerInfoBuilder
impl Freeze for DiscovererContainerInfoBuilder
impl RefUnwindSafe for DiscovererContainerInfoBuilder
impl Unpin for DiscovererContainerInfoBuilder
impl UnsafeUnpin for DiscovererContainerInfoBuilder
impl UnwindSafe for DiscovererContainerInfoBuilder
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