TropicalFishBucketMeta

Struct TropicalFishBucketMeta 

Source
pub struct TropicalFishBucketMeta<'mc>(/* private fields */);

Implementations§

Source§

impl<'mc> TropicalFishBucketMeta<'mc>

Source

pub fn pattern_color(&self) -> Result<DyeColor<'mc>, Box<dyn Error>>

Gets the color of the fish’s pattern.

Plugins should check that hasVariant() returns true before calling this method.

Source

pub fn set_pattern_color( &self, color: impl Into<DyeColor<'mc>>, ) -> Result<(), Box<dyn Error>>

Sets the color of the fish’s pattern.

Setting this when hasVariant() returns false will initialize all other values to unspecified defaults.

Source

pub fn body_color(&self) -> Result<DyeColor<'mc>, Box<dyn Error>>

Gets the color of the fish’s body.

Plugins should check that hasVariant() returns true before calling this method.

Source

pub fn set_body_color( &self, color: impl Into<DyeColor<'mc>>, ) -> Result<(), Box<dyn Error>>

Sets the color of the fish’s body.

Setting this when hasVariant() returns false will initialize all other values to unspecified defaults.

Source

pub fn pattern(&self) -> Result<TropicalFishPattern<'mc>, Box<dyn Error>>

Gets the fish’s pattern.

Plugins should check that hasVariant() returns true before calling this method.

Source

pub fn set_pattern( &self, pattern: impl Into<TropicalFishPattern<'mc>>, ) -> Result<(), Box<dyn Error>>

Sets the fish’s pattern.

Setting this when hasVariant() returns false will initialize all other values to unspecified defaults.

Source

pub fn has_variant(&self) -> Result<bool, Box<dyn Error>>

Checks for existence of a variant tag indicating a specific fish will be spawned.

Source

pub fn clone(&self) -> Result<TropicalFishBucketMeta<'mc>, Box<dyn Error>>

Source

pub fn has_display_name(&self) -> Result<bool, Box<dyn Error>>

Checks for existence of a display name.

Source

pub fn display_name(&self) -> Result<String, Box<dyn Error>>

Gets the display name that is set.

Plugins should check that hasDisplayName() returns true before calling this method.

Source

pub fn set_display_name( &self, name: impl Into<String>, ) -> Result<(), Box<dyn Error>>

Sets the display name.

Source

pub fn has_item_name(&self) -> Result<bool, Box<dyn Error>>

Checks for existence of an item name.

Item name differs from display name in that it is cannot be edited by an anvil, is not styled with italics, and does not show labels.

Source

pub fn item_name(&self) -> Result<String, Box<dyn Error>>

Gets the item name that is set.

Item name differs from display name in that it is cannot be edited by an anvil, is not styled with italics, and does not show labels.

Plugins should check that hasItemName() returns true before calling this method.

Source

pub fn set_item_name( &self, name: impl Into<String>, ) -> Result<(), Box<dyn Error>>

Sets the item name.

Item name differs from display name in that it is cannot be edited by an anvil, is not styled with italics, and does not show labels.

Source

pub fn has_localized_name(&self) -> Result<bool, Box<dyn Error>>

👎Deprecated

Checks for existence of a localized name.

Source

pub fn localized_name(&self) -> Result<String, Box<dyn Error>>

👎Deprecated

Gets the localized display name that is set.Plugins should check that hasLocalizedName() returns true before calling this method.

Source

pub fn set_localized_name( &self, name: impl Into<String>, ) -> Result<(), Box<dyn Error>>

👎Deprecated

Sets the localized name.

Source

pub fn has_lore(&self) -> Result<bool, Box<dyn Error>>

Checks for existence of lore.

Source

pub fn lore(&self) -> Result<Option<Vec<String>>, Box<dyn Error>>

Gets the lore that is set.

Plugins should check if hasLore() returns true before calling this method.

Source

pub fn set_lore(&self, lore: Vec<JObject<'mc>>) -> Result<(), Box<dyn Error>>

Sets the lore for this item. Removes lore when given null.

Source

pub fn has_custom_model_data(&self) -> Result<bool, Box<dyn Error>>

Checks for existence of custom model data.

CustomModelData is an integer that may be associated client side with a custom item model.

Source

pub fn custom_model_data(&self) -> Result<i32, Box<dyn Error>>

Gets the custom model data that is set.

CustomModelData is an integer that may be associated client side with a custom item model.

Plugins should check that hasCustomModelData() returns true before calling this method.

Source

pub fn set_custom_model_data(&self, data: i32) -> Result<(), Box<dyn Error>>

Sets the custom model data.

CustomModelData is an integer that may be associated client side with a custom item model.

Source

pub fn has_enchants(&self) -> Result<bool, Box<dyn Error>>

Checks for the existence of any enchantments.

Source

pub fn has_enchant( &self, ench: impl Into<Enchantment<'mc>>, ) -> Result<bool, Box<dyn Error>>

Checks for existence of the specified enchantment.

Source

pub fn get_enchant_level( &self, ench: impl Into<Enchantment<'mc>>, ) -> Result<i32, Box<dyn Error>>

Checks for the level of the specified enchantment.

Source

pub fn enchants(&self) -> Result<JavaMap<'mc>, Box<dyn Error>>

Returns a copy the enchantments in this ItemMeta.

Returns an empty map if none.

Source

pub fn add_enchant( &self, ench: impl Into<Enchantment<'mc>>, level: i32, ignore_level_restriction: bool, ) -> Result<bool, Box<dyn Error>>

Adds the specified enchantment to this item meta.

Source

pub fn remove_enchant( &self, ench: impl Into<Enchantment<'mc>>, ) -> Result<bool, Box<dyn Error>>

Removes the specified enchantment from this item meta.

Source

pub fn remove_enchantments(&self) -> Result<(), Box<dyn Error>>

Removes all enchantments from this item meta.

Source

pub fn has_conflicting_enchant( &self, ench: impl Into<Enchantment<'mc>>, ) -> Result<bool, Box<dyn Error>>

Checks if the specified enchantment conflicts with any enchantments in this ItemMeta.

Source

pub fn add_item_flags( &self, item_flags: impl Into<ItemFlag<'mc>>, ) -> Result<(), Box<dyn Error>>

Set itemflags which should be ignored when rendering a ItemStack in the Client. This Method does silently ignore double set itemFlags.

Source

pub fn remove_item_flags( &self, item_flags: impl Into<ItemFlag<'mc>>, ) -> Result<(), Box<dyn Error>>

Remove specific set of itemFlags. This tells the Client it should render it again. This Method does silently ignore double removed itemFlags.

Source

pub fn item_flags(&self) -> Result<JavaSet<'mc>, Box<dyn Error>>

Get current set itemFlags. The collection returned is unmodifiable.

Source

pub fn has_item_flag( &self, flag: impl Into<ItemFlag<'mc>>, ) -> Result<bool, Box<dyn Error>>

Check if the specified flag is present on this item.

Source

pub fn is_hide_tooltip(&self) -> Result<bool, Box<dyn Error>>

Gets if this item has hide_tooltip set. An item with this set will not show any tooltip whatsoever.

Source

pub fn set_hide_tooltip(&self, hide_tooltip: bool) -> Result<(), Box<dyn Error>>

Sets if this item has hide_tooltip set. An item with this set will not show any tooltip whatsoever.

Source

pub fn is_unbreakable(&self) -> Result<bool, Box<dyn Error>>

Return if the unbreakable tag is true. An unbreakable item will not lose durability.

Source

pub fn set_unbreakable(&self, unbreakable: bool) -> Result<(), Box<dyn Error>>

Sets the unbreakable tag. An unbreakable item will not lose durability.

Source

pub fn has_enchantment_glint_override(&self) -> Result<bool, Box<dyn Error>>

Gets if an enchantment_glint_override is set.

Source

pub fn enchantment_glint_override(&self) -> Result<bool, Box<dyn Error>>

Sets the enchantment_glint_override. If true, the item will glint, even without enchantments; if false, the item will not glint, even with enchantments. Plugins should check {@link #hasEnchantmentGlintOverride()} before calling this method.

Source

pub fn set_enchantment_glint_override( &self, val_override: bool, ) -> Result<(), Box<dyn Error>>

Sets the enchantment_glint_override. If true, the item will glint, even without enchantments; if false, the item will not glint, even with enchantments. If null, the override will be cleared.

Source

pub fn is_fire_resistant(&self) -> Result<bool, Box<dyn Error>>

Checks if this item is fire_resistant. If true, it will not burn in fire or lava.

Source

pub fn set_fire_resistant( &self, fire_resistant: bool, ) -> Result<(), Box<dyn Error>>

Sets if this item is fire_resistant. If true, it will not burn in fire or lava.

Source

pub fn has_max_stack_size(&self) -> Result<bool, Box<dyn Error>>

Gets if the max_stack_size is set.

Source

pub fn max_stack_size(&self) -> Result<i32, Box<dyn Error>>

Gets the max_stack_size. This is the maximum amount which an item will stack.

Source

pub fn set_max_stack_size(&self, max: i32) -> Result<(), Box<dyn Error>>

Sets the max_stack_size. This is the maximum amount which an item will stack.

Source

pub fn has_rarity(&self) -> Result<bool, Box<dyn Error>>

Gets if the rarity is set.

Source

pub fn rarity(&self) -> Result<ItemRarity<'mc>, Box<dyn Error>>

Gets the item rarity. Plugins should check {@link #hasRarity()} before calling this method.

Source

pub fn set_rarity( &self, rarity: impl Into<ItemRarity<'mc>>, ) -> Result<(), Box<dyn Error>>

Sets the item rarity.

Source

pub fn has_food(&self) -> Result<bool, Box<dyn Error>>

Checks if the food is set.

Source

pub fn food(&self) -> Result<FoodComponent<'mc>, Box<dyn Error>>

Gets the food set on this item, or creates an empty food instance.

The returned component is a snapshot of its current state and does not reflect a live view of what is on an item. After changing any value on this component, it must be set with {@link #setFood(FoodComponent)} to apply the changes.

Source

pub fn set_food( &self, food: impl Into<FoodComponent<'mc>>, ) -> Result<(), Box<dyn Error>>

Sets the item food.

Source

pub fn has_tool(&self) -> Result<bool, Box<dyn Error>>

Checks if the tool is set.

Source

pub fn tool(&self) -> Result<ToolComponent<'mc>, Box<dyn Error>>

Gets the tool set on this item, or creates an empty tool instance.

The returned component is a snapshot of its current state and does not reflect a live view of what is on an item. After changing any value on this component, it must be set with {@link #setTool(ToolComponent)} to apply the changes.

Source

pub fn set_tool( &self, tool: impl Into<ToolComponent<'mc>>, ) -> Result<(), Box<dyn Error>>

Sets the item tool.

Source

pub fn has_jukebox_playable(&self) -> Result<bool, Box<dyn Error>>

Checks if the jukebox playable is set.

Source

pub fn jukebox_playable( &self, ) -> Result<Option<JukeboxPlayableComponent<'mc>>, Box<dyn Error>>

Gets the jukebox playable component set on this item.

The returned component is a snapshot of its current state and does not reflect a live view of what is on an item. After changing any value on this component, it must be set with {@link #setJukeboxPlayable(org.bukkit.inventory.meta.components.JukeboxComponent)} to apply the changes.

Source

pub fn set_jukebox_playable( &self, jukebox_playable: impl Into<JukeboxPlayableComponent<'mc>>, ) -> Result<(), Box<dyn Error>>

Sets the item tool.

Source

pub fn has_attribute_modifiers(&self) -> Result<bool, Box<dyn Error>>

Checks for the existence of any AttributeModifiers.

Source

pub fn get_attribute_modifiers( &self, attribute: impl Into<Attribute<'mc>>, ) -> Result<Option<Vec<AttributeModifier<'mc>>>, Box<dyn Error>>

Return an immutable copy of all {@link AttributeModifier}s for a given {@link Attribute}

Source

pub fn add_attribute_modifier( &self, attribute: impl Into<Attribute<'mc>>, modifier: impl Into<AttributeModifier<'mc>>, ) -> Result<bool, Box<dyn Error>>

Add an Attribute and it’s Modifier. AttributeModifiers can now support {@link EquipmentSlot}s. If not set, the {@link AttributeModifier} will be active in ALL slots.

Two {@link AttributeModifier}s that have the same {@link java.util.UUID} cannot exist on the same Attribute.

Source

pub fn set_attribute_modifiers( &self, attribute_modifiers: JObject<'mc>, ) -> Result<(), Box<dyn Error>>

Set all {@link Attribute}s and their {@link AttributeModifier}s. To clear all currently set Attributes and AttributeModifiers use null or an empty Multimap. If not null nor empty, this will filter all entries that are not-null and add them to the ItemStack.

Source

pub fn remove_attribute_modifier( &self, attribute: impl Into<Attribute<'mc>>, modifier: Option<impl Into<AttributeModifier<'mc>>>, ) -> Result<bool, Box<dyn Error>>

Remove a specific {@link Attribute} and {@link AttributeModifier}. AttributeModifiers are matched according to their {@link java.util.UUID}.

Source

pub fn as_string(&self) -> Result<String, Box<dyn Error>>

Get this ItemMeta as an NBT string. If this ItemMeta does not have any NBT, then {@code “{}”} will be returned.

This string should NEVER be relied upon as a serializable value. If serialization is desired, the {@link ConfigurationSerializable} API should be used instead.

Source

pub fn as_component_string(&self) -> Result<String, Box<dyn Error>>

Get this ItemMeta as a component-compliant string. If this ItemMeta does not contain any components, then {@code “[]”} will be returned.

The result of this method should yield a string representing the components altered by this ItemMeta instance. When passed to {@link ItemFactory#createItemStack(String)} with a prepended item type, it will create an ItemStack that has an ItemMeta matching this ItemMeta instance exactly. Note that this method returns ONLY the components and cannot be passed to createItemStack() alone. An example may look something like this:

ItemStack itemStack = // ... an item stack obtained from somewhere
ItemMeta itemMeta = itemStack.getItemMeta();
String components = itemMeta.getAsComponentString(); // example: "[minecraft:damage=53]"
String itemTypeKey = itemStack.getType().getKey().toString(); // example: "minecraft:diamond_sword"
String itemAsString = itemTypeKey + components; // results in: "minecraft:diamond_sword[minecraft:damage=53]"
ItemStack recreatedItemStack = Bukkit.getItemFactory().createItemStack(itemAsString);
assert itemStack.isSimilar(recreatedItemStack); // Should be true*

*Components not represented or explicitly overridden by this ItemMeta instance will not be included in the resulting string and therefore may result in ItemStacks that do not match exactly. For example, if {@link #setDisplayName(String)} is not set, then the custom name component will not be included. Or if this ItemMeta is a PotionMeta, it will not include any components related to lodestone compasses, banners, or books, etc., only components modifiable by a PotionMeta instance.

This string should NEVER be relied upon as a serializable value. If serialization is desired, the {@link ConfigurationSerializable} API should be used instead.

Source

pub fn custom_tag_container( &self, ) -> Result<CustomItemTagContainer<'mc>, Box<dyn Error>>

👎Deprecated

Returns a public custom tag container capable of storing tags on the item. Those tags will be sent to the client with all of their content, so the client is capable of reading them. This will result in the player seeing a NBT Tag notification on the item. These tags can also be modified by the client once in creative mode

Source

pub fn set_version(&self, version: i32) -> Result<(), Box<dyn Error>>

Internal use only! Do not use under any circumstances!

Source

pub fn instance_of(&self, other: impl Into<String>) -> Result<bool, Error>

Trait Implementations§

Source§

impl<'mc> Into<ItemMeta<'mc>> for TropicalFishBucketMeta<'mc>

Source§

fn into(self) -> ItemMeta<'mc>

Converts this type into the (usually inferred) input type.
Source§

impl<'mc> JNIInstantiatable<'mc> for TropicalFishBucketMeta<'mc>

Source§

fn from_raw( env: &SharedJNIEnv<'mc>, obj: JObject<'mc>, ) -> Result<Self, Box<dyn Error>>

Source§

impl<'mc> JNIRaw<'mc> for TropicalFishBucketMeta<'mc>

Source§

fn jni_ref(&self) -> SharedJNIEnv<'mc>

Source§

fn jni_object(&self) -> JObject<'mc>

Auto Trait Implementations§

§

impl<'mc> !Freeze for TropicalFishBucketMeta<'mc>

§

impl<'mc> !RefUnwindSafe for TropicalFishBucketMeta<'mc>

§

impl<'mc> !Send for TropicalFishBucketMeta<'mc>

§

impl<'mc> !Sync for TropicalFishBucketMeta<'mc>

§

impl<'mc> Unpin for TropicalFishBucketMeta<'mc>

§

impl<'mc> UnwindSafe for TropicalFishBucketMeta<'mc>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<D> OwoColorize for D

Source§

fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>
where C: Color,

Set the foreground color generically Read more
Source§

fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>
where C: Color,

Set the background color generically. Read more
Source§

fn black(&self) -> FgColorDisplay<'_, Black, Self>

Change the foreground color to black
Source§

fn on_black(&self) -> BgColorDisplay<'_, Black, Self>

Change the background color to black
Source§

fn red(&self) -> FgColorDisplay<'_, Red, Self>

Change the foreground color to red
Source§

fn on_red(&self) -> BgColorDisplay<'_, Red, Self>

Change the background color to red
Source§

fn green(&self) -> FgColorDisplay<'_, Green, Self>

Change the foreground color to green
Source§

fn on_green(&self) -> BgColorDisplay<'_, Green, Self>

Change the background color to green
Source§

fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>

Change the foreground color to yellow
Source§

fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>

Change the background color to yellow
Source§

fn blue(&self) -> FgColorDisplay<'_, Blue, Self>

Change the foreground color to blue
Source§

fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>

Change the background color to blue
Source§

fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>

Change the foreground color to magenta
Source§

fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>

Change the background color to magenta
Source§

fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>

Change the foreground color to purple
Source§

fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>

Change the background color to purple
Source§

fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>

Change the foreground color to cyan
Source§

fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>

Change the background color to cyan
Source§

fn white(&self) -> FgColorDisplay<'_, White, Self>

Change the foreground color to white
Source§

fn on_white(&self) -> BgColorDisplay<'_, White, Self>

Change the background color to white
Source§

fn default_color(&self) -> FgColorDisplay<'_, Default, Self>

Change the foreground color to the terminal default
Source§

fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>

Change the background color to the terminal default
Source§

fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>

Change the foreground color to bright black
Source§

fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>

Change the background color to bright black
Source§

fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>

Change the foreground color to bright red
Source§

fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>

Change the background color to bright red
Source§

fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>

Change the foreground color to bright green
Source§

fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>

Change the background color to bright green
Source§

fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>

Change the foreground color to bright yellow
Source§

fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>

Change the background color to bright yellow
Source§

fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>

Change the foreground color to bright blue
Source§

fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>

Change the background color to bright blue
Source§

fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>

Change the foreground color to bright magenta
Source§

fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>

Change the background color to bright magenta
Source§

fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>

Change the foreground color to bright purple
Source§

fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>

Change the background color to bright purple
Source§

fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>

Change the foreground color to bright cyan
Source§

fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>

Change the background color to bright cyan
Source§

fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>

Change the foreground color to bright white
Source§

fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>

Change the background color to bright white
Source§

fn bold(&self) -> BoldDisplay<'_, Self>

Make the text bold
Source§

fn dimmed(&self) -> DimDisplay<'_, Self>

Make the text dim
Source§

fn italic(&self) -> ItalicDisplay<'_, Self>

Make the text italicized
Source§

fn underline(&self) -> UnderlineDisplay<'_, Self>

Make the text underlined
Make the text blink
Make the text blink (but fast!)
Source§

fn reversed(&self) -> ReversedDisplay<'_, Self>

Swap the foreground and background colors
Source§

fn hidden(&self) -> HiddenDisplay<'_, Self>

Hide the text
Source§

fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>

Cross out the text
Source§

fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the foreground color at runtime. Only use if you do not know which color will be used at compile-time. If the color is constant, use either OwoColorize::fg or a color-specific method, such as OwoColorize::green, Read more
Source§

fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>
where Color: DynColor,

Set the background color at runtime. Only use if you do not know what color to use at compile-time. If the color is constant, use either OwoColorize::bg or a color-specific method, such as OwoColorize::on_yellow, Read more
Source§

fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the foreground color to a specific RGB value.
Source§

fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>

Set the background color to a specific RGB value.
Source§

fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>

Sets the foreground color to an RGB value.
Source§

fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>

Sets the background color to an RGB value.
Source§

fn style(&self, style: Style) -> Styled<&Self>

Apply a runtime-determined style
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more