Struct zng::third_party::LICENSES
source · pub struct LICENSES;
Expand description
Third party licenses.
Implementations§
source§impl LICENSES
impl LICENSES
sourcepub fn licenses(&self) -> Vec<LicenseUsed>
pub fn licenses(&self) -> Vec<LicenseUsed>
Aggregates all registered third party licenses, grouped by license, sorted by name.
Exact licenses and users are deduplicated.
sourcepub fn view_process_licenses(&self) -> Vec<LicenseUsed>
pub fn view_process_licenses(&self) -> Vec<LicenseUsed>
Third party licenses provided by the view-process, grouped by license, sorted by name.
Returns an empty vec if there is no view-process running or the view-process does not provide any license.
sourcepub fn user_licenses(&self) -> Vec<UserLicense>
pub fn user_licenses(&self) -> Vec<UserLicense>
Aggregates all registered third party licenses, by user, sorted by name.
Exact licenses and users are deduplicated.
sourcepub fn view_process_user_licenses(&self) -> Vec<UserLicense>
pub fn view_process_user_licenses(&self) -> Vec<UserLicense>
Third party licenses provided by the view-process, by user, sorted by name.
Returns an empty vec if there is no view-process running or the view-process does not provide any license.
sourcepub fn include_view_process(&self) -> ArcVar<bool>
pub fn include_view_process(&self) -> ArcVar<bool>
If view-process provided third party licenses are included in licenses
.
Note that prebuilt view-process licenses may not be found by license scraper tools.
This is true
by default.
sourcepub fn register(&self, source: fn() -> Vec<LicenseUsed>)
pub fn register(&self, source: fn() -> Vec<LicenseUsed>)
Register a function that loads some third party licenses used by this app.
Auto Trait Implementations§
impl Freeze for LICENSES
impl RefUnwindSafe for LICENSES
impl Send for LICENSES
impl Sync for LICENSES
impl Unpin for LICENSES
impl UnwindSafe for LICENSES
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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