pub struct SourceSvcIns {
pub sources: Vec<SourceHandle>,
pub acceptor: Option<AcceptorHandle>,
}Expand description
SourceFactory::build 的统一返回结构。
Fields§
§sources: Vec<SourceHandle>§acceptor: Option<AcceptorHandle>Implementations§
Source§impl SourceSvcIns
impl SourceSvcIns
pub fn new() -> Self
pub fn with_sources(self, sources: Vec<SourceHandle>) -> Self
pub fn push_source(&mut self, instance: SourceHandle)
pub fn with_acceptor(self, acceptor: AcceptorHandle) -> Self
Trait Implementations§
Source§impl Debug for SourceSvcIns
impl Debug for SourceSvcIns
Source§impl Default for SourceSvcIns
impl Default for SourceSvcIns
Source§fn default() -> SourceSvcIns
fn default() -> SourceSvcIns
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SourceSvcIns
impl !RefUnwindSafe for SourceSvcIns
impl Send for SourceSvcIns
impl !Sync for SourceSvcIns
impl Unpin for SourceSvcIns
impl !UnwindSafe for SourceSvcIns
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